from sys import executable

import mprof

# mprof run executable
# mprof plot

'''
1. 方法前添加注解
@profile(precision=4,stream=open('./profiler_outout/mprof_trainer-run_entire_seq.log','w+'))

2. 命令行运行
mprof run --multiprocess train.py -d iptvsmall -db singled82 -me 2 -lp simp -um async -gpu -np 10 -nt 1

3. 生成图片
mprof plot

'''